#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;

int main()
{
    std::ofstream file("Ranking_UB.txt", std::ios::app);
    if(file.is_open())
    {
        for(double d=36;d<=200;d++)
        {
            file << d << " " << ((2.0 * d - 1.0) - pow(1.0-1.0/d, d) * (d-1.0) ) / (2.0 * d - 1.0) << endl;
        }
        file.close();
    }

    return 0;
}